package com.springboot.study.listener;

import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

/**
 * @Author: guodong
 * @Date: 2021/5/13 13:19
 * @Version: 1.0
 * @Description:
 */
@Component
public class MyAnnotationListener {

    @EventListener
    public void listener1(MyTestEvent event) {
        System.out.println("注解监听器----1:" + event.getMsg());
    }

}
